<?php if (isset($category) && $category): ?>
	<?php $children_category = $category->getNode()->getChildren(); ?>
	<?php if($children_category):?>
	    <?php foreach ($children_category as $item): ?>
	        <tr>
	            <td><input type="checkbox" /></td>
	            <td><a href="<?php echo Route::Url('category-tree', array('path' => $path.'/'.$item->slug)) ?>"><?php echo $item->name ?></a></td>
	
	            <td><?php echo $item->description ?></td>
	            <td class="tc">
	                <?php
	                $children = $item->getNode()->getChildren();
	                if ($children)
	                    echo $children->count();
	                else
	                    echo '0';
	                ?>
	            </td>
	            <td class="tc"><?php echo $item->active ?></td>
	            <td class="tc">
	                <!-- Icons -->
	                <a href="<?php echo Route::Url('category-crud',array('action' => 'edit','slug' => $item->slug))?>" title="Edit"><img src="<?php echo $assets_image . '/icons/pencil.png'; ?>" alt="Edit" /></a>
	                <a href="<?php echo Route::Url('category-crud',array('action' => 'delete','slug' => $item->slug));?>" title="Delete"><img src="<?php echo $assets_image . '/icons/cross.png'; ?>" alt="Delete" rel="delete" /></a> 
	            </td>
	        </tr>
	    <?php endforeach; ?>
    <?php endif;?>
<?php endif; ?>
